<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	isELIgnored="false" session="true"%>
<%@taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">

<title><s:message code="M_5100_SORDER_MANAGEMENT_TAG" /></title>
<%@ include file="/page/comPage/comCSS.html"%>
<%@ include file="/page/comPage/navbar.html"%>
<style>
.keyClass {
	color: blue;
	font-weight: bold;
}

.top {
	margin-bottom: 20px;
}
form .form-group {
	margin: -7px 0px;
}
.form-horizontal {
	padding-top: 10px;
}
</style>

</head>
<body>
<div>5100</div>
	<div class="container-fluid">
			<div class="col-lg-12 col-md-12 col-sm-12 btnDivCss">
				<button class="btn btn-info" id="query_btn">
					<s:message code="QUERY_TAG" />
				</button>

				<button class="btn btn-primary" id="add_btn">
					<s:message code="ADD_TAG" />
				</button>

				<button class="btn btn-warning" id="update_btn">
					<s:message code="UPDATE_TAG" />
				</button>

				<button class="btn btn-danger" id="del_btn">
					<s:message code="DELETE_TAG" />
				</button>

				<button class="btn btn-success" id="save_btn">
					<s:message code="SAVE_TAG" />
				</button>

				<button class="btn btn-primary" id="clear_btn">
					<s:message code="CLEAR_TAG" />
				</button>

				<%--<button class="btn btn-primary" id="bind_btn" hidden>绑定客户订单</button>--%>
		</div>

			<div class="col-lg-12 col-md-12 col-sm-12">
				<form id="orderList" class="form-horizontal">
					<div class="form-group col-lg-3 col-md-3 col-sm-3">
						<br /> <label
							class="control-label col-lg-4 col-md-4 col-sm-4 keyClass"
							for="woId"><s:message code="SO_ID_TAG"/></label>
						<div class="col-lg-8 col-md-8 col-sm-8">
							<input type="text" class="form-control" id="woId" />
						</div>
					</div>
					<div class="form-group col-lg-3 col-md-3 col-sm-3">
						<br /> <label
							class="control-label col-lg-4 col-md-4 col-sm-4"
							for="woId"><s:message code="CUS_ORDER_ID_TAG"/></label>
						<div class="col-lg-8 col-md-8 col-sm-8">
							<input type="text" class="form-control" id="soId" />
						</div>
					</div>
					<div class="form-group col-lg-3 col-md-3 col-sm-3">
						<br /> <label class="control-label col-lg-4 col-md-4 col-sm-4"
							for="woCate">订单属性</label>
						<div class="col-lg-8 col-md-8 col-sm-8">
							<select class="form-control" id="woCate" style="width: 100%;">
							</select>
						</div>
					</div>

					<div class="form-group col-lg-3 col-md-3 col-sm-3">
						<br /> <label class="control-label col-lg-4 col-md-4 col-sm-4 "
							for="cusIdFk">客户代码</label>
						<div class="col-lg-8 col-md-8 col-sm-8">
							<select class="form-control" id="cusIdFk" style="width: 100%;">
							</select>
						</div>
					</div>

					<div class="form-group col-lg-3 col-md-3 col-sm-3">
						<br /> <label class="control-label col-lg-4 col-md-4 col-sm-4"
							for="mdlIdFk">产品代码</label>
						<div class="col-lg-8 col-md-8 col-sm-8">
							<select class="form-control" id="mdlIdFk" style="width: 100%;">
							</select>
						</div>
					</div>

					<div class="form-group col-lg-3 col-md-3 col-sm-3">
						<br /> <label class="control-label col-lg-4 col-md-4 col-sm-4"
							for="mtrlProdIdFk">来料料号</label>
						<div class="col-lg-8 col-md-8 col-sm-8">
						<input type="text" class="form-control" id="mtrlProdIdFk" />
						</div>
					</div>

					<div class="form-group col-lg-3 col-md-3 col-sm-3">
						<br /> <label class="control-label col-lg-4 col-md-4 col-sm-4"
							for="fromThickness">来料厚度</label>
						<div class="col-lg-8 col-md-8 col-sm-8">
							<input type="text" class="form-control" id="fromThickness" />
						</div>
					</div>

					<div class="form-group col-lg-3 col-md-3 col-sm-3">
						<br /> <label class="control-label col-lg-4 col-md-4 col-sm-4"
							for="plnPrdQty">订单数量</label>
						<div class="col-lg-8 col-md-8 col-sm-8">
							<input type="text" class="form-control" id="plnPrdQty" />
						</div>
					</div>

					<div class="form-group col-lg-3 col-md-3 col-sm-3">
						<br /> <label class="control-label col-lg-4 col-md-4 col-sm-4"
							for="plnStbDatepicker"> 计划投产日期 </label>
						<div class="col-lg-8 col-md-8 col-sm-8">
							<div id="plnStbDatepicker" class="input-group input-append">
								<input data-format="yyyy-MM-dd" type="text" class="form-control">
								<span class="input-group-addon add-on"> <i
									data-date-icon="glyphicon-calendar"
									class="glyphicon glyphicon-calendar"></i>
								</span>
							</div>
						</div>
					</div>

					<div class="form-group col-lg-3 col-md-3 col-sm-3">
						<br /> <label class="control-label col-lg-4 col-md-4 col-sm-4"
							for="plnCompDatepicker"> 计划交货日期 </label>
						<div class="col-lg-8 col-md-8 col-sm-8 ">
							<div id="plnCompDatepicker" class="input-group input-append">
								<input data-format="yyyy-MM-dd" type="text" class="form-control">
								<span class="input-group-addon add-on"> <i
									data-date-icon="icon-calendar"
									class="glyphicon glyphicon-calendar"></i>
								</span>
							</div>
						</div>
					</div>

					<!-- <div class="form-group col-lg-3 col-md-3 col-sm-3">
						<br /> <label class="control-label col-lg-4 col-md-4 col-sm-4"
							for="mtrlLotIdFk">lot id</label>
						<div class="col-lg-8 col-md-8 col-sm-8">
							<input type="text" class="form-control" id="mtrlLotIdFk" />
						</div>
					</div> -->


					<div class="form-group col-lg-3 col-md-3 col-sm-3">
						<br /> <label class="control-label col-lg-4 col-md-4 col-sm-4"
							for="woDsc">内部订单描述</label>
						<div class="col-lg-8 col-md-8 col-sm-8">
								<textarea name="message"  rows="2" class="form-control"
								id="woDsc"  style="resize:none;"></textarea>
							<!-- <input type="text" class="form-control" id="woDsc" /> -->
						</div>
					</div>
					
					<div class="form-group col-lg-3 col-md-3 col-sm-3">
						<br /> <label class="control-label col-lg-4 col-md-4 col-sm-4"
							for="woNote">备注</label>
						<div class="col-lg-8 col-md-8 col-sm-8">
								<textarea name="message"  rows="2" class="form-control"
								id="woNote"  style="resize:none;"></textarea>
						<!-- 	<input type="text" class="form-control" id="woNote" /> -->
						</div>
					</div>
				</form>
			</div>


			<%--<div class="col-lg-12 col-md-12 col-sm-12 UnderDiv" style="position: relative;">--%>
			<div class="col-lg-12 col-md-12 col-sm-12 UnderDiv" id="divBottom">
				<fieldset>
					<legend>内部订单信息列表</legend>
				</fieldset>
				<div id="cusOrderDiv" class="col-lg-12 col-md-12 col-sm-12">
					<table id="cusOrderGrd"></table>
					<div id="cusOrderPg"></div>
				</div>
			</div>
	</div>

	<!--绑定客户订单对话框  -->
	<div id="bindCusDialog" class="modal fade" tabindex="-1" role="dialog"
		aria-labelledby="title" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<!-- 模框头部 -->
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">×</button>
					<h4 class="modal-title">绑定客户订单</h4>
				</div>
				<!-- 模框主体 -->
				<div class="modal-body">
					<form id="bindCusDialogForm" class="row form-horizontal">
						<div class="control-group">
							<label class="control-label col-lg-4 col-md-4 col-sm-4 keyCss"
								for="bindCusDialog_SoIdTxt"> 客户订单号 </label>
							<div class="col-lg-8 col-md-8 col-sm-8">
								<input type="text" id="bindCusDialog_SoIdTxt"
									class="form-control" />
							</div>
						</div>
					</form>
				</div>
				<!-- 模框底部 -->
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal"
						id="bindCusDialog_cancelBtn">
						<s:message code="CANCEL_TAG" />
					</button>
					<button type="button" class="btn btn-primary"
						id="bindCusDialog_sureBtn">确认</button>
				</div>

			</div>
		</div>
	</div>

</body>
<%@ include file="/page/comPage/comJS.html"%>
<script src="lib/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script src="lib/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript" src="js/page/5000/5100.js"></script>
</html>